import time

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.edge.service import Service

if __name__ == '__main__':
    exe_path = "../driver/msedgedriver.exe"
    service = Service(executable_path=exe_path)
    brower = webdriver.Edge(service=service)

    brower.get(url="https://www.taobao.com")

    elements = brower.find_elements(by=By.TAG_NAME, value="div")
    print(len(elements))

    time.sleep(10)

    brower.quit()